package com.zyk.scaffold.seata.biz.feign.order;

import com.zyk.scaffold.core.domain.Result;
import com.zyk.scaffold.seata.biz.feign.order.request.OrderRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "backend-scaffold-seata-order", path = "/order")
public interface OrderFeignClient {

    @PostMapping("/order/ok")
    Result<Boolean> ok(@RequestBody OrderRequest orderRequest);

    @PostMapping("/order/error")
    Result<Boolean> error(@RequestBody OrderRequest orderRequest);

    @PostMapping("/order/none_seata_ok")
    Result<Boolean> none_seata_ok(@RequestBody OrderRequest orderRequest);

    @PostMapping("/order/none_seata_error")
    Result<Boolean> none_seata_error(@RequestBody OrderRequest orderRequest);
}
